package com.tron.dobest.ymldata;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 描述：
 *
 * @author TRON
 * @since 2020-04-21
 */
@Configuration
@EnableConfigurationProperties(value = {TronMetadata.class})
public class MetadataConfig {

    //加载源数据
    @Autowired
    TronMetadata tronMetadata;

    //把源数据注入到容器中
    @Bean
    public TronMetadata tronMetadata() {
        return tronMetadata;
    }
}
